	
			<h3 class="name">		
				<ol class="breadcrumb">
				  <li><a href="{{$this->Html->url('/flowsteps/operate/'.$step_id)}}">{{__($step_info['Flowstep']['name'])}}</a></li>
				  <li class="active">{{ __('View')}}</li>
				</ol>		
			</h3> 
			<div class="detail btline2 ">
				{{$this->Html->image($model_item['coverimg'])}}
				<p>{{$model_item['name']}}</p>				
				<p>{{$model_item['created']}}</p>
				
				<portlet title="{{__('Team Members')}}" fields="TeamMember.*,User.*"  limit="20" cache="no" model="User" list_tpl="inner" info="joins[0][table]=team_members&joins[0][alias]=TeamMember&joins[0][type]=inner&joins[0][conditions][]=TeamMember.user_id=User.id&&joins[0][conditions][TeamMember.team_id]=$data_id">
					{{if $item_all['TeamMember']['status']==1}}
					<li><label class="label label-success">{{$item['username']}}</label>  {{$item['email']}} &nbsp; {{$item_all['TeamMember']['created']}}</li>
					{{else}}
					<li><label class="label label-default">{{$item['username']}}</label>  {{$item['email']}} &nbsp; {{$item_all['TeamMember']['created']}}</li>
					{{/if}}
				</portlet>
				
				<portlet title="{{__('Team Member Invite History')}}" cache="no" model="TMInvite" limit="20" list_tpl="inner" info="conditions[team_id]=$data_id">
					{{if $item['status']==1}}
						<li><label class="label label-success">{{$item['email']}}</label> {{$item['created']}} </li>
					{{else}}
						<li>
							<label class="label label-default">{{$item['email']}}</label> {{$item['created']}} 
							<a class="btn btn-sm btn-default" href="{{$this->Html->url('/TMInvites/invite')}}?email={{$item['email']}}&team_id={{$model_item['id']}}">{{__('Resend Email')}}</a> 
							<a class="btn btn-sm btn-default" href="{{$this->Html->url('/TMInvites/delete/'.$item['id'])}}">{{__('Delete')}}</a> 
						</li>
					{{/if}}
				</portlet>
				
				<portlet title="Invite User to Join Team by Email">
				{{$this->MForm->create('TMInvite',array('action'=>'invite'))}}
					{{$this->MForm->input('email',array('type'=>'email','div'=>'form-inline'))}}
					
					{{$this->MForm->hidden('team_id',array('value'=> $model_item['id']))}}
					
					<div class="submit"><input class="btn btn-primary" type="submit" value="{{__('Submit')}}"></div>
					
				{{$this->MForm->end()}}
				</portlet>
			</div>
			
		
{{$this->Html->css(array('bootstrap-datepicker.css'))}}
{{$this->Html->script(array('bootstrap-datepicker.js'))}}
<script type="text/javascript">
$(function(){
	$(document).on('click','.form-datepicker',function(){
		if( !$(this).data('datepicker')){
			$(this).datepicker().datepicker('show');
		}
		else{
			$(this).datepicker('show');
		}
	})
})
</script>